﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Sunlit.House.Articles.Dto;

namespace Sunlit.House.Articles
{
    public interface INewsCategoryAppService:IApplicationService
    {
        Task<NewsCategoryDto> CreateAsync(CreateNewsCategoryInput input);
        Task DeleteAsync(EntityDto input);
        Task<NewsCategoryDto> UpdateAsync(UpdateNewsCategoryInput input);
        Task<List<NewsCategoryDto>> GetCatesByParentId(int id);
        Task<List<NewsCategoryDto>> GetAllRootCates();
        Task<List<NewsCategoryDto>> GetTreeData(GetTreeCateInput input);
        Task<IList<NewsCategoryDto>> GetAllListAsync();
        Task<IList<NewsCategoryDto>> GetAllInMenuAsync();
    }
}
